package com.woniu.controller.homepage;

import com.woniu.service.homePage.IOrdersDetailsTwoService;
import com.woniu.util.ResData;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 周权
 * @data 2023/3/13 10:24
 */
@RestController
@RequestMapping("/app")
public class OrdersDetailsTwoController {
    @Autowired
    IOrdersDetailsTwoService ordersDetailsTwoService;

    @RequestMapping("/getAllOrdersDetails")
    public ResData<?> getAllOrdersDetails(String ordersId){
        ResData<?> allOrdersDetails = ordersDetailsTwoService.getAllOrdersDetails(ordersId);
        return allOrdersDetails;
    }

    @RequestMapping("/deleteOrdersDetail")
    public ResData<?> deleteOrdersDetail(String id){
       return ordersDetailsTwoService.deleteOrdersDetail(id);
    }

}
